import {Provider, useSelector} from "react-redux"
import './App.css'
import { store } from "./store"
// import {  useRoutes } from "react-router-dom"
// import { routerConfig } from "./router"
import Layout from "./page/Layout"
import { useEffect, useState } from "react"
import { VisibleContextProvider } from "@/content/visible";

function App() {

  const [user,setUser] = useState()
  // const {list,name}=useSelector((state:any) => state.counter) 
  const {count,list,name} = useSelector((state:any) => state.counter)
  console.log(count,list,name);
  useEffect(() => {
    // console.log(users,'user');
    console.log(window.localStorage.path,'window.localStorage.path');
    console.log(window.localStorage,'window.localStorage');
  },[window.localStorage])
  
  return (
    // <Provider store={store}>
      <Layout />
    // </Provider>                   
  )
}

export default App
